package com.digital.smartgrow.controller;

import com.digital.smartgrow.common.util.WebTool;
import com.digital.smartgrow.entity.datacenter.Teacher;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther sunyuechao
 * @Date 2022/9/8-09-08 10:55
 * @Description
 **/
@Api(tags = "通用接口")
@RestController
@RequestMapping("/comm")
public class CommonController {
    @ApiOperation(value = "当前用户-详情")
    @GetMapping("/u/info")
    public Object getU(){
        Teacher user = WebTool.getCurrentUser();
        return user;
    }
}
